package es.juanc.io;

import java.io.File;

public class FileTest {
	
	public static void main( String[] args ) {

		System.out.println( new File("").getAbsolutePath() );
		System.out.println( new File("src").getAbsolutePath() );
		System.out.println( new File("props.txt").getAbsolutePath() );
		
		System.out.println( FileTest.class.getResource( "/props.txt" ) );
		System.out.println( FileTest.class.getResourceAsStream( "props.txt" ) );	
		
		FileTest t = new FileTest();
		t.resources();
	}
	
	public void resources() {

		System.out.println( this.getClass().getResource( "props.txt" ) );
		System.out.println( this.getClass().getResourceAsStream( "props.txt" ) );		
	}
}
